package com.declum.archon.client;

import java.io.IOException;

import junit.framework.TestCase;

import com.declum.archon.chunkserver.manager.disk.chunk.ChunkMetaLogger;

public class ChunkMetaLoggerTest extends TestCase {
	public void testAddEntries() throws IOException {
		ChunkMetaLogger logger = ChunkMetaLogger.getInstance("C:\\temp");
		for (int i = 0; i < 100; i++) {
			logger.addChunkLog(i + "");
		}

		for (int i = 0; i < 100; i = i + 2) {
			logger.removeChunkLog(i + "");
		}
		logger.close();
	}
}
